﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MainFrame
{
    [Serializable]
    public class typeData
    {
        #region getMagneticSetup
        //取磁片设置
        private double m_getMagneticY;  //取磁片Y
        private double m_getMagneticZ;  //取磁片Z
        private double m_getMagneticW;  //取磁片W
        private double m_getMagneticVelRate;  //取磁片速度比率（系数）

        public double getMagneticY
        {
            get { return m_getMagneticY; }
            set { m_getMagneticY = value; }
        }
        public double getMagneticZ
        {
            get { return m_getMagneticZ; }
            set { m_getMagneticZ = value; }
        }
        public double getMagneticW
        {
            get { return m_getMagneticW; }
            set { m_getMagneticW = value; }
        }

        public double getMagneticVelRate
        {
            get { return m_getMagneticVelRate; }
            set { m_getMagneticVelRate = value; }
        }
        #endregion

        #region correctMagneticSetup
        //取磁片设置
        private double m_correctMagneticY;  //取磁片Y
        private double m_correctMagneticZ;  //取磁片Z
        private double m_correctMagneticW;  //取磁片W
        private double m_correctMagneticVelRate;  //取磁片速度比率（系数）

        public double correctMagneticY
        {
            get { return m_correctMagneticY; }
            set { m_correctMagneticY = value; }
        }
        public double correctMagneticZ
        {
            get { return m_correctMagneticZ; }
            set { m_correctMagneticZ = value; }
        }
        public double correctMagneticW
        {
            get { return m_correctMagneticW; }
            set { m_correctMagneticW = value; }
        }

        public double correctMagneticVelRate
        {
            get { return m_correctMagneticVelRate; }
            set { m_correctMagneticVelRate = value; }
        }
        #endregion

        #region laminateMagneticSetup
        //取磁片设置
        private double m_laminateMagneticY;  //取磁片Y
        private double m_laminateMagneticZ;  //取磁片Z
        private double m_laminateMagneticW;  //取磁片W
        private double m_laminateMagneticVelRate;  //取磁片速度比率（系数）

        public double laminateMagneticY
        {
            get { return m_laminateMagneticY; }
            set { m_laminateMagneticY = value; }
        }
        public double laminateMagneticZ
        {
            get { return m_laminateMagneticZ; }
            set { m_laminateMagneticZ = value; }
        }
        public double laminateMagneticW
        {
            get { return m_laminateMagneticW; }
            set { m_laminateMagneticW = value; }
        }

        public double laminateMagneticVelRate
        {
            get { return m_laminateMagneticVelRate; }
            set { m_laminateMagneticVelRate = value; }
        }
        #endregion

        #region wipeoffFilmSetup
        //取磁片设置
        private double m_wipeoffMagneticX;  //撕膜X
        private double m_takeFilmPullLength;  //撕膜拉料长度
        private double m_wipeoffMagneticVelRate;  //撕膜速度比率（系数）

        public double wipeoffMagneticX
        {
            get { return m_wipeoffMagneticX; }
            set { m_wipeoffMagneticX = value; }
        }
        public double takeFilmPullLength
        {
            get { return m_takeFilmPullLength; }
            set { m_takeFilmPullLength = value; }
        }

        public double wipeoffMagneticVelRate
        {
            get { return m_wipeoffMagneticVelRate; }
            set { m_wipeoffMagneticVelRate = value; }
        }
        #endregion

        #region pull setup
        //拉料设置
        private bool m_Fvacuss;  //前真空是否校验
        private bool m_Mvacuss;  //中间真空是否校验
        private bool m_Lvacuss;  //后真空是否校验
        private double m_pullLength;  //拉料长度


        private int m_pullSensorUp;//1是上升沿有效2是下降沿有效

        public int pullSensorUp
        {
            get { return m_pullSensorUp; }
            set { m_pullSensorUp = value; }
        }
        public double pullLength
        {
            get { return m_pullLength; }
            set { m_pullLength = value; }
        }
        public bool Fvacuss
        {
            get { return m_Fvacuss; }
            set { m_Fvacuss = value; }
        }
        public bool Mvacuss
        {
            get { return m_Mvacuss; }
            set { m_Mvacuss = value; }
        }
        public bool Lvacuss
        {
            get { return m_Lvacuss; }
            set { m_Lvacuss = value; }
        }
        #endregion

        #region ErrorWarningTips
        private bool m_isContinualError;
        private bool m_isPrecentError;
        private int m_precentErrorTotal;
        private int m_precentErrorNumber;
        private int m_continualNumber;

        public bool isContinualError
        {
            get
            {
                return m_isContinualError;
            }

            set
            {
                m_isContinualError = value;
            }
        }

        public bool isPrecentError
        {
            get
            {
                return m_isPrecentError;
            }

            set
            {
                m_isPrecentError = value;
            }
        }

        public int precentErrorTotal
        {
            get
            {
                return m_precentErrorTotal;
            }

            set
            {
                m_precentErrorTotal = value;
            }
        }

        public int precentErrorNumber
        {
            get
            {
                return m_precentErrorNumber;
            }

            set
            {
                m_precentErrorNumber = value;
            }
        }

        public int continualNumber
        {
            get
            {
                return m_continualNumber;
            }

            set
            {
                m_continualNumber = value;
            }
        }
        #endregion

        private double m_ZsafePosition;
        public double ZsafePosition
        {
            get { return m_ZsafePosition; }
            set { m_ZsafePosition = value; }
        }
        private bool m_magneticAutoRise;
        public bool magneticAutoRise
        {
            get { return m_magneticAutoRise; }
            set { m_magneticAutoRise = value; }
        }

        private int m_turnplateTimeout;
        private int m_effectValue;
        public int turnplateTimeout
        {
            get { return m_turnplateTimeout; }
            set { m_turnplateTimeout = value; }
        } 
        public int effectValue
        {
            get { return m_effectValue; }
            set { m_effectValue = value; }
        }

        private double m_magneticStep;
        public double magneticStep
        {
            get { return m_magneticStep; }
            set { m_magneticStep = value; }
        }

        private bool m_isSuckerVaccum;
        public bool isSuckerVaccum
        {
            get { return m_isSuckerVaccum; }
            set { m_isSuckerVaccum = value; }
        }
        private int m_suckerTimeout;
        public int suckerTimeout
        {
            get { return m_suckerTimeout; }
            set { m_suckerTimeout = value; }
        }

        private int m_resuckTimes;
        private bool m_isResuck;

        public int resuckTimes
        {
            get { return m_resuckTimes; }
            set { m_resuckTimes = value; }
        }
        public bool isResuck
        {
            get { return m_isResuck; }
            set { m_isResuck = value; }
        }

        private int m_correctTimeout;
        public int correctTimeout
        {
            get { return m_correctTimeout; }
            set { m_correctTimeout = value; }
        }

        private bool m_isPullFixedLength;
        public bool isPullFixedLength
        {
            get { return m_isPullFixedLength; }
            set { m_isPullFixedLength = value; }
        }
        private int m_pullSensorTimeout;
        public int pullSensorTimeout
        {
            get { return m_pullSensorTimeout; }
            set { m_pullSensorTimeout = value; }
        }

        public double PullIngoreLength
        {
            get
            {
                return m_pullIngoreLength;
            }

            set
            {
                m_pullIngoreLength = value;
            }
        }

        public bool IsLotsOfAM
        {
            get
            {
                return m_isLotsOfAM;
            }

            set
            {
                m_isLotsOfAM = value;
            }
        }

        public int PullFilmSensorTimes
        {
            get
            {
                return m_pullFilmSensorTimes;
            }

            set
            {
                m_pullFilmSensorTimes = value;
            }
        }

        public int TakeFilmFrontSensorTimes
        {
            get
            {
                return m_takeFilmFrontSensorTimes;
            }

            set
            {
                m_takeFilmFrontSensorTimes = value;
            }
        }

        public int TakeFilmBackSensorMoreTimes
        {
            get
            {
                return m_takeFilmBackSensorMoreTimes;
            }

            set
            {
                m_takeFilmBackSensorMoreTimes = value;
            }
        }

        public int TakeFilmBackSensorManyTimes
        {
            get
            {
                return m_takeFilmBackSensorManyTimes;
            }

            set
            {
                m_takeFilmBackSensorManyTimes = value;
            }
        }

        private double m_pullIngoreLength;

        private bool m_isLotsOfAM;

        private int m_pullFilmSensorTimes;
        private int m_takeFilmFrontSensorTimes;
        private int m_takeFilmBackSensorManyTimes;
        private int m_takeFilmBackSensorMoreTimes;

        private int m_rewindTotalNumber;
        private int m_rewindCylinderNumber;
        public int RewindTotalNnumber
        {
            get { return m_rewindTotalNumber; }
            set { m_rewindTotalNumber = value; }
        }
        public int RewindCylinderNumber
        {
            get { return m_rewindCylinderNumber; }
            set { m_rewindCylinderNumber = value; }
        }
    }
}
